package fun.asgc.boot.netty.bean.test4;

import fun.asgc.boot.netty.annotation.NeutrinoApplication;
import fun.asgc.boot.netty.annotation.NonIntercept;
import fun.asgc.boot.netty.aop.support.Async;
import fun.asgc.boot.netty.context.ApplicationRunner;
import fun.asgc.boot.netty.context.NeutrinoLauncher;

/**
 *
 * @author: aoshiguchen
 * @date: 2022/7/8
 */
@NonIntercept(false)
@NeutrinoApplication
public class Launcher implements ApplicationRunner {


	@Override
	public void run(String[] args) {
		System.out.println("1111111");
		hello();
		System.out.println("2222");
	}

	public static void main(String[] args) {
		NeutrinoLauncher.run(Launcher.class, args).sync();
	}

	@Async
	public void hello() {
		try {
			Thread.sleep(5000);
			System.out.println("hello");
		} catch (Exception e) {

		}
	}

}
